<h1>Listing serials</h1>

<table>
  <tr>
    <th>Year</th>
    <th>Number</th>
    <th>Volume</th>
    <th>Epoch</th>
    <th>Publication date</th>
    <th>Material</th>
    <th>Price</th>
    <th>Currency</th>
  </tr>

<% @serials.each do |serial| %>
  <tr>
    <td><%=h serial.year %></td>
    <td><%=h serial.number %></td>
    <td><%=h serial.volume %></td>
    <td><%=h serial.epoch %></td>
    <td><%=h serial.publication_date %></td>
    <td><%=h serial.material %></td>
    <td><%=h serial.price %></td>
    <td><%=h serial.currency %></td>
    <td><%= link_to 'Show', serial %></td>
    <td><%= link_to 'Edit', edit_serial_path(serial) %></td>
    <td><%= link_to 'Destroy', serial, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New serial', new_serial_path %>